package com.dongnam.quanly.common.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "ChiTietDonHang")
public class ChiTietDonHang extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "SoDonHang")
	private String donHang;

	@Id
	@Column(name = "MaVTTH")
	private String vatTuHangHoa;

	@Column(name = "TenVTTH")
	private String tenVTHH;

	@Column(name = "SoLuong")
	private Integer soLuong;

	@Column(name = "DonGia")
	private Double donGia;

	public ChiTietDonHang() {
		super();
		// TODO Auto-generated constructor stub
	}

	public ChiTietDonHang(String donHang, String vatTuHangHoa, String tenvthh, Integer soLuong, Double donGia) {
		super();
		this.donHang = donHang;
		this.vatTuHangHoa = vatTuHangHoa;
		this.soLuong = soLuong;
		this.donGia = donGia;
		this.tenVTHH = tenvthh;
	}

	public ChiTietDonHang(ChiTietDonHang ctdh) {
		super();
		this.donHang = ctdh.donHang;
		this.vatTuHangHoa = ctdh.vatTuHangHoa;
		this.soLuong = ctdh.soLuong;
		this.donGia = ctdh.donGia;
	}

	public String getDonHang() {
		return donHang;
	}

	public void setDonHang(String donHang) {
		this.donHang = donHang;
	}

	public String getVatTuHangHoa() {
		return vatTuHangHoa;
	}

	public void setVatTuHangHoa(String vatTuHangHoa) {
		this.vatTuHangHoa = vatTuHangHoa;
	}

	public Integer getSoLuong() {
		return soLuong;
	}

	public void setSoLuong(Integer soLuong) {
		this.soLuong = soLuong;
	}

	public Double getDonGia() {
		return donGia;
	}

	public void setDonGia(Double donGia) {
		this.donGia = donGia;
	}

	public String getTenVTHH() {
		return tenVTHH;
	}

	public void setTenVTHH(String tenVTHH) {
		this.tenVTHH = tenVTHH;
	}

}
